package com.autoapitest.common.core.domain.entity;

import com.autoapitest.common.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@ApiModel(value = "ProjectBaseUserEntity", description = "项目实体")
public class ProjectBaseUserEntity extends BaseEntity {

    /**
     * 项目主键
     */
    @ApiModelProperty("项目主键")
    private String projectUserid;

    /**
     * 项目名称
     */
    /**
     * 项目名称
     */
    @ApiModelProperty("项目主键ID")
    @NotEmpty(message = "项目主键ID不存在")
    private String projectId;


    /**
     * 用户ID
     */
    @ApiModelProperty("用户ID")
    @NotNull(message = "用户ID不存在")
    private List<Long> userIds;





    public String getProjectUserid() {
        return projectUserid;
    }

    public void setProjectUserid(String projectUserid) {
        this.projectUserid = projectUserid;
    }

    public String getProjectId() {
        return projectId;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }


    public List<Long> getUserIds() {
        return userIds;
    }

    public void setUserIds(List<Long> userIds) {
        this.userIds = userIds;
    }

    public ProjectBaseUserEntity() {
    }


    public ProjectBaseUserEntity(String projectUserid, @NotEmpty(message = "项目主键ID不存在") String projectId, @NotNull(message = "用户ID不存在") List<Long> userIds) {
        this.projectUserid = projectUserid;
        this.projectId = projectId;
        this.userIds = userIds;
    }

    @Override
    public String toString() {
        return "ProjectBaseUserEntity{" +
                "projectUserid='" + projectUserid + '\'' +
                ", projectId='" + projectId + '\'' +
                ", userIds=" + userIds +
                '}';
    }
}
